<!doctype html>
<html>
<head>
  {include file="index/head" /}
</head>
<body>
  {include file="index/header" /}
  <div class="main">
    <div id="step"></div>
    <div class="server">
      <table width="100%">
        <tr>
          <th class="td1">环境检测</th>
          <th class="td1" width="25%">推荐配置</th>
          <th class="td1" width="25%">当前状态</th>
          <th class="td1" width="25%">最低要求</th>
        </tr>
        <tr>
          <td>操作系统</td>
          <td>类UNIX</td>
          <td><span class="correct_span">&radic;</span> {$os}</td>
          <td>不限制</td>
        </tr>
        <tr>
          <td>PHP版本</td>
          <td>>7.1.X</td>
          <td><span class="correct_span">&radic;</span> {$phpv}</td>
          <td>7.1.0</td>
        </tr>
        <tr>
          <td>附件上传</td>
          <td>>2M</td>
          <td>{:html_entity_decode($uploadSize)}</td>
          <td>不限制</td>
        </tr>
        <tr>
          <td>gd</td>
          <td>开启</td>
          <td>{:html_entity_decode($gd)}</td>
          <td>开启</td>
        </tr>
        <tr>
          <td>mysqli</td>
          <td>开启</td>
          <td>{:html_entity_decode($mysqli)}</td>
          <td>开启</td>
        </tr>
        <tr>
          <td>pdo</td>
          <td>开启</td>
          <td>{:html_entity_decode($pdo)}</td>
          <td>开启</td>
        </tr>
        <tr>
          <td>pdo_mysql</td>
          <td>开启</td>
          <td>{:html_entity_decode($pdo_mysql)}</td>
          <td>开启</td>
        </tr>
        <tr>
          <td>SESSION</td>
          <td>开启</td>
          <td>{:html_entity_decode($session)}</td>
          <td>开启</td>
        </tr>
      </table>
      <table width="100%">
        <tr>
          <th class="td1">函数支持检测</th>
          <th class="td1" width="25%">当前环境</th>
          <th class="td1" width="25%">程序要求</th>
        </tr>
       {volist name="function" id="rs"}
        <tr>
          <td>{$key}</td>
          <td>{if condition="$rs"}<span class="correct_span">&radic;</span>支持{else/}<span class="correct_span error_span">&radic;</span>不支持{/if}</td>
          <td><span class="correct_span">&radic;</span>支持</td>
        </tr>
      {/volist}
      </table>
      <table width="100%">
        <tr>
          <th class="td1">目录、文件权限检查</th>
          <th class="td1" width="25%">写入</th>
          <th class="td1" width="25%">读取</th>
        </tr>
       {volist name="folderInfo" id="rs"}
        <tr>
          <td>{$rs.dir}</td>
          <td>{:html_entity_decode($rs.is_writable)}</td>
          <td>{:html_entity_decode($rs.is_readable)}</td>
        </tr>
        {/volist}
      </table>
    </div>
    <div class="center">
      <a href="{:url('/Index/step_2')}" class="a-btn"><div class="bottom">重新检测</div></a>
      <a href="{:url('/Index/step_3')}" class="a-btn next"><div class="bottom">下一步</div></a>
    </div>
  </div>
  {include file="index/footer" /}
<script>
$(function(){
    var $step = $("#step");
    $step.step({
        index: 1,
        time: 500,
        title: ["使用协议", "检查环境", "配置系统", "安装数据库", "完成安装"]
    });
	var errSum = {$err};
	if(errSum){
		$('a.next').addClass('btn_old').click(function(){
			alert('环境检测不通过，无法进行下一步！');
			return false;
		});
	}
});
</script>
</body>
</html>